//
//  NetWorkModel.h
//  SmartCoin
//
//  Created by apple on 2018/3/8.
//  Copyright © 2018年 Cynic. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
typedef void (^SuccessAccess)(id responseObject);
typedef void (^FailAccess)(NSError *erro);
typedef void (^AccessInfo)(NSString *result);
@interface NetWorkModel : NSObject
@property (nonatomic ,retain)AccessInfo sendMessage;

//#pragma mark--main网络请求
//-(void)AccessNetWorkWithURL:(NSString *)Parturl withEndData:(NSString *)endData WithData:( id  _Nullable )data success:(_Nonnull SuccessAccess)success Fail:(_Nonnull FailAccess)failure isPost:(BOOL)isPost;

#pragma supper ---------------------------------------商户
#pragma mark--登录
-(void)loginwithUserAccount:(NSString *)acount withPass:(NSString *)secret;
#pragma mark--获取门户金额
-(void)getStoreDetailMoney;
#pragma mark--获取门户明细列表
-(void)getStoreDetailBuessesswithpage:(NSInteger)CurrentPgae withOnlyToday:(BOOL)OnlyToday;
#pragma mark--获取积分明细列表
-(void)getDetailintegralwithpage:(NSInteger)CurrentPage;
#pragma mark--获取商户信息
-(void)getSllerInfo;
#pragma mark--静音否
-(void)changeringstatus:(BOOL)ring;
#pragma mark--配置获取
-(void)getSettinginfo;


#pragma supper     --------------------------员工端
#pragma mark--微信登录
-(void)wexinLogin:(NSString *)openID;
#pragma mark--获取手机验证码
-(void)getMessageCodeByPhone:(NSString *)phone;
#pragma mark--手机激活
-(void)connectWithOpenid:(NSString *)Openid Code:(NSString *)code;
#pragma mark--获取员工所在商户列表
-(void)getBossInfoListByUser:(NSString *)userID;
#pragma mark--获取员工账户信息
-(void)getUserMoneyinfoByUser:(NSString *)userID;
#pragma mark--获取员工分红明细
-(void)getUserBonusListByUser:(NSString *)userID withPage:(NSInteger)page;
#pragma mark--获取员工提现明细
-(void)getUserCashOutDetailListByUser:(NSString *)userID withPage:(NSInteger)page;
#pragma mark--申请提现
-(void)CashOutByUser:(NSString *)userID withMoney:(NSString *)money;
#pragma mark--获取商户设置
-(void)getMechantSettingByshopID:(NSString *)shopID;

#pragma supper -----------------------------新增商户首页部分
#pragma mark--获取订单列表
-(void)NewSellerStoreGetOrderlistByshopID:(NSString *)shopID WithPage:(NSInteger)currentpage withOnlyToday:(BOOL)onlyToday;
#pragma mark--营业额获取
-(void)NewSellerStoreMoneyinfowithShopID:(NSString *)ShopID;

#pragma mark ------------------------------新增积分商户首页部分
#pragma mark--积分商城资金信息
-(void)GetCodeStoreMoneyInfoByShopID:(NSString *)shopid;
#pragma mark--积分商城订单列表
-(void)GetCodeStoreListWithCurrentPage:(NSInteger)currentPage withShopID:(NSString *)shopid;
#pragma mark--积分商城详情
-(void)GetDetailCodeStoreInfoByShopID:(NSString *)shopid;
#pragma mark--获取segnum
-(void)getSegNum;


#pragma mark--用户的红包领取记录
-(void)getUserGetRedBagHisByPage:(NSInteger)page withUserid:(NSString *)userID;
#pragma mark--商户的红包记录
-(void)getSellerSendRedBagHisByPage:(NSInteger)page withShopID:(NSString *)shopID;
#pragma mark--领取红包
-(void)getRedBagByID:(NSString *)bagID;
#pragma mark--红包统计
-(void)TotallRedInfoByID:(NSString *)shopID;
#pragma mark--红包详情
-(void)getRedBagDetailInfoByID:(NSString *)bagID;
#pragma mark--单个红包领取记录
-(void)getSingleRedBagGetterHisByID:(NSString *)bagID;
#pragma mark--派发红包
//bagtype 0 随机 random ： 1 普通 normal
-(void)SendOutRedBagsWithType:(NSInteger)BagType withPrice:(NSString *)PriceNum withCount:(NSString *)countNum withMessage:(NSString *)message withShopID:(NSString *)shopID;
@end
